﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:TournamentOrganizerWPF" x:Class="TournamentOrganizerWPF.MainWindow"
        Title="MainWindow" Height="409.302" Width="752.907">
        
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0*"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Button Click="AddLocations" Grid.ColumnSpan="2" Content="Add Location" HorizontalAlignment="Left" Margin="33,266,0,0" VerticalAlignment="Top" Width="82"/>
        <Button Grid.ColumnSpan="2" Content="Add Player" HorizontalAlignment="Left" Margin="33,293,0,0" VerticalAlignment="Top" Width="82" Click="AddPlayer"/>
        <DataGrid Name="playerGrid" ItemsSource="{Binding PlayerList}" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Top" Height="215" Width="745" MinColumnWidth="122" RenderTransformOrigin="0.5,0.5"/>
        <Button Grid.ColumnSpan="2" Content="Match next round" HorizontalAlignment="Left" Margin="157,266,0,0" VerticalAlignment="Top" Width="114" Click="MatchNextRound"/>
        <Label Grid.ColumnSpan="2" Name="roundNo" Content="{Binding RoundNo}" HorizontalAlignment="Left" Margin="706,342,0,0" VerticalAlignment="Top" RenderTransformOrigin="1.105,-1.962"/>
        <Label Grid.ColumnSpan="2" Content="Round number:" HorizontalAlignment="Left" Margin="597,342,0,0" VerticalAlignment="Top"/>
        <Button Grid.ColumnSpan="2" Content="RemovePlayer" HorizontalAlignment="Left" Margin="157,293,0,0" VerticalAlignment="Top" Width="114" Click="RemovePlayer"/>
        <Button Click="PrintMatches" Grid.ColumnSpan="2" Content="Print Matches" HorizontalAlignment="Left" Margin="33,330,0,0" VerticalAlignment="Top" Width="82"/>
        <Button Click="PrintStandings" Grid.ColumnSpan="2" Content="Print Standings" HorizontalAlignment="Left" Margin="157,330,0,0" VerticalAlignment="Top" Width="114"/>
        <Button Click="SaveTournament" Grid.ColumnSpan="2" Content="Save Tournament" HorizontalAlignment="Left" Margin="307,266,0,0" VerticalAlignment="Top" Width="112"/>
        <Button Click="LoadTournament" Grid.ColumnSpan="2" Content="Load Tournament" HorizontalAlignment="Left" Margin="307,293,0,0" VerticalAlignment="Top" Width="112"/>
        <Button Click="AddAndCheckScenarios" Grid.ColumnSpan="2" Content="Scenarios" HorizontalAlignment="Left" Margin="307,330,0,0" VerticalAlignment="Top" Width="112"/>

    </Grid>
</Window>
